package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 问卷规则
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-09-01
 */
@TableName("wz_questionnaire_rule")
public class WzQuestionnaireRule extends Model<WzQuestionnaireRule> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "questionnaire_rule_id", type = IdType.AUTO)
    private Long questionnaireRuleId;
    /**
     * 广告id
     */
    @TableField("adv_id")
    private Long advId;
    /**
     * 调查问卷id
     */
    @TableField("questionnaire_id")
    private Long questionnaireId;
    /**
     * 问题id
     */
    @TableField("question_id")
    private Long questionId;
    /**
     * 答案id
     */
    @TableField("answer_id")
    private Long answerId;


    public Long getQuestionnaireRuleId() {
        return questionnaireRuleId;
    }

    public void setQuestionnaireRuleId(Long questionnaireRuleId) {
        this.questionnaireRuleId = questionnaireRuleId;
    }

    public Long getAdvId() {
        return advId;
    }

    public void setAdvId(Long advId) {
        this.advId = advId;
    }

    public Long getQuestionnaireId() {
        return questionnaireId;
    }

    public void setQuestionnaireId(Long questionnaireId) {
        this.questionnaireId = questionnaireId;
    }

    public Long getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }

    public Long getAnswerId() {
        return answerId;
    }

    public void setAnswerId(Long answerId) {
        this.answerId = answerId;
    }

    @Override
    protected Serializable pkVal() {
        return this.questionnaireRuleId;
    }

    @Override
    public String toString() {
        return "WzQuestionnaireRule{" +
        "questionnaireRuleId=" + questionnaireRuleId +
        ", advId=" + advId +
        ", questionnaireId=" + questionnaireId +
        ", questionId=" + questionId +
        ", answerId=" + answerId +
        "}";
    }
}
